﻿using System;
using System.ServiceModel;
using VideoServices.Services.Dto;
using VideoServices.Services.Response;

namespace VideoServices.Services.Interface
{
    [ServiceContract]
    public interface IOrderService
    {
        /// <summary>
        /// Gets the order by id.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        [OperationContract]
        Response<OrderDto> GetOrderById(Guid id);

        /// <summary>
        /// Creates the order.
        /// </summary>
        /// <param name="newOrder">The new order.</param>
        /// <returns></returns>
        [OperationContract]
        Response<OrderDto> CreateOrder(OrderDto newOrder);
    }
}
